package com.wakaca.design.pattern.structural.flyweight;

/**
 * 部门的管理者
 * Created by wakaca
 */
public class Manager implements Employee {
    public void report() {
        System.out.println(reportContent);
    }

    // title 是不变的，我们可以认为这是个内部状态
    private String title = "部门经理";

    // department依赖外部闯入的参数，我们可以认为他是外部状态
    private String department; // 部门

    private String reportContent;

    public void setReportContent(String reportContent) {
        this.reportContent = reportContent;
    }

    public Manager(String department) {
        this.department = department;
    }
}
